The Dreamweaver JavaScript API > File manipulation functions > dom.getLinkTarget() |
![]() ![]() ![]() |
Availability
Dreamweaver 3.0
Description
Gets the target of the link that surrounds the current selection. This function is equivalent to looping through the parents and grandparents of the current node until a link is found, and then calling getAttribute('TARGET')
on the link.
Arguments
None.
Returns
A string containing the value of the TARGET
attribute for the link, or an empty string if no target is specified.
Enabler
None.
![]() ![]() ![]() |